/// currentTime : 1629349823666
/// data : [{"groupName":"","nickName":"乌郐","avatar":"","userId":10000007}]
/// resultCode : 1

class TitleUserListModel {
  int currentTime;
  List<Data> data;
  int resultCode;

  TitleUserListModel({this.currentTime, this.data, this.resultCode});

  TitleUserListModel.fromJson(dynamic json) {
    currentTime = json["currentTime"];
    if (json["data"] != null) {
      data = [];
      json["data"].forEach((v) {
        data.add(Data.fromJson(v));
      });
    }
    resultCode = json["resultCode"];
  }

  Map<String, dynamic> toJson() {
    var map = <String, dynamic>{};
    map["currentTime"] = currentTime;
    if (data != null) {
      map["data"] = data.map((v) => v.toJson()).toList();
    }
    map["resultCode"] = resultCode;
    return map;
  }
}

/// groupName : ""
/// nickName : "乌郐"
/// avatar : ""
/// userId : 10000007

class Data {
  String groupName;
  String nickName;
  String avatar;
  String userId;

  Data({this.groupName, this.nickName, this.avatar, this.userId});

  Data.fromJson(dynamic json) {
    groupName = json["groupName"];
    nickName = json["nickName"];
    avatar = json["avatar"];
    userId = json["userId"];
  }

  Map<String, dynamic> toJson() {
    var map = <String, dynamic>{};
    map["groupName"] = groupName;
    map["nickName"] = nickName;
    map["avatar"] = avatar;
    map["userId"] = userId;
    return map;
  }
}
